package com.ecc.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import com.ecc.intercept.ErrorPageInterceptor;

/**   
 * @Description:TODO
 * @author: lxh 
 * @date: 2018年6月11日
 */
//@Configuration
public class WebMvcConfig extends WebMvcConfigurationSupport {
	

	@Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new ErrorPageInterceptor());//.addPathPatterns("/action/**", "/mine/**");默认所有
        super.addInterceptors(registry);
    }

}
